var NewsInfo= {
	newsId:null,

	query:null,
	
	createQuery : function() {
		this.query = "&newsId="+this.newsId;
	},
	
	loadNewsInfo : function(ajax_request) {
		//alert(ajax_request.responseText);
		var data = eval("(" + ajax_request.responseText + ")");
	//	alert(data);
		
		// process book data
		var _newsId = document.getElementById("news_Id");
		var _newsTitle = document.getElementById("news_Title");
		var _newsContent = document.getElementById("news_Content"); 
		var _newsPublisher = document.getElementById("news_Publisher");
		var _newsPublishTime= document.getElementById("news_PublishTime");


	//	alert(data.MovieInfo[0].movieName);
		//_newsId.innerHTML=data.NewsInfo[0].newsId;
		_newsTitle.innerHTML=data.NewsInfo[0].newsTitle;
		_newsContent.innerHTML=data.NewsInfo[0].newsContent;
		_newsPublisher.innerHTML=data.NewsInfo[0].newsPublisher;
		_newsPublishTime.innerHTML=data.NewsInfo[0].newsPublishTime;
				
	},
	
	askForNewsInfo : function() {
		var href = "getSingleNews.do?newsId="+this.newsId;
		ajaxRequest(href, this.loadNewsInfo, null);
	},
	
};